package com.hundsun.fcp.base;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import com.hundsun.fcp.R;
import com.hundsun.fcp.widget.HeaderMenu;


public abstract class BaseActivity extends BaseProtectActivity {
	protected HeaderMenu mHeaderMenu;
	protected void initHeader(){
		mHeaderMenu = new HeaderMenu(getWindow());	
		mHeaderMenu.setLeftBG(R.drawable.head_back);
		mHeaderMenu.setLeftClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();
			}
		});
	};
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(getContentLayout());
		initHeader();
		initView();
	}
	
	public void initView(){};
	
	protected abstract int getContentLayout();
	
	public void afterLogin(){} ;
	
	
}
